home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: macro for itoa() ??
- Date: Thu, 29 Feb 96 13:59:16 GMT
- Organization: none
- Message-ID: <825602356snz@genesis.demon.co.uk>
- References: <4h083q$7fj@news.csus.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4h083q$7fj@news.csus.edu> wleong@sfsu.edu "WEE-KING LEONG" writes:
-
- >Hi, are there any macro that can do itoa() ?
- >The reason is that I need to store an integer into my string buffer.
- >Is there any other way besides using itoa() ?
-
- The usual way is to use something like:
-
- sprintf(buf, "%d", i);
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-